"use strict";
{
    let me;
    me = {
        id: 1,
        name: 'xiaohigh',
        age: 35,
        cook: () => {
            console.log('我会煮方便面~~');
        },
        makeMoney: () => {
            return 2000;
        },
        repair: (jiqi) => {
            console.log(`我可以维修 ${jiqi}`);
        },
        code: () => {
            console.log('我可以编程哦~~~');
        }
    };
    let you = {
        id: 2,
        name: '吴彦祖',
        age: 46,
        car: '雅迪',
        cook: () => {
            console.log('我什么都会做~~~');
        },
        makeMoney: () => {
            return 2000000;
        }
    };
    //约束一类对象的结构  implements 实现接口
    class Student {
        //声明构造方法
        constructor(id, name, age, car) {
            this.id = id;
            this.name = name;
            this.age = age;
            this.car = car;
        }
        cook() {
            console.log('我能做饭啦~~');
        }
        makeMoney() {
            return 3520;
        }
        code(language) {
            console.log(`我可以编写 ${language}哦~`);
        }
    }
    //实例化对象
    let jiandong = new Student(520, '剑东', 25, '比亚迪');
    let tianyun = new Student(521, '天运', 26, '长安~');
    jiandong.code('JavaScript');
    tianyun.code('Java');
}
